imx: imx_clock: wdog: Add watchdog clock API
authorBryan O'Donoghue <bryan.odonoghue@linaro.org>
Fri, 13 Jul 2018 09:21:40 +0000 (10:21 +0100)
committerBryan O'Donoghue <bryan.odonoghue@linaro.org>
Tue, 4 Sep 2018 12:36:23 +0000 (13:36 +0100)
commitbbdcdd044a662de7a1b33b02eb2ccd81596b6420
treeda8a29c7abe76949cf6ba0f2635b4579e87709c4
parent14cf32aaa72fabb13f60e85c2a4c8bf9422c22ec
imx: imx_clock: wdog: Add watchdog clock API

This patch adds a set of functions to enable the clock for each of the
watchdog IP blocks.

Unlike the MMC and UART blocks, the watchdog blocks operate off of the one
root clock, only the clock-gates are enable/disabled individually.

As a consequence the function clock_set_wdog_clk_root_bits() is used to set
the root-slice just once for all of the watchdog blocks.

Future implementations may need to change this model but for now on the one
supported processor and similar NXP SoCs this model should work fine.

Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
plat/imx/common/imx_clock.c
plat/imx/common/include/imx_clock.h